package com.brainhealth.customer.service;

import java.util.List;

import com.brainhealth.common.core.domain.TreeSelect;
import com.brainhealth.customer.domain.ScoreMallGoodsCategory;
import com.brainhealth.customer.domain.vo.GoodsCategoryTreeVO;

import javax.servlet.http.HttpServletRequest;

/**
 * 积分商城商品分类Service接口
 * 
 * @author wolong
 * @date 2023-11-01
 */
public interface IScoreMallGoodsCategoryService 
{
    /**
     * 查询积分商城商品分类
     * 
     * @param id 积分商城商品分类主键
     * @return 积分商城商品分类
     */
    public ScoreMallGoodsCategory selectScoreMallGoodsCategoryById(Long id);

    /**
     * 查询积分商城商品分类列表
     * 
     * @param scoreMallGoodsCategory 积分商城商品分类
     * @return 积分商城商品分类集合
     */
    public List<ScoreMallGoodsCategory> selectScoreMallGoodsCategoryList(ScoreMallGoodsCategory scoreMallGoodsCategory);

    /**
     * 获取商品分类的树形结构
     * @return
     */
    public List<TreeSelect> getScoreMallGoodsCategoryTree();

    public List<GoodsCategoryTreeVO> getScoreMallGoodsCategoryTreeList(HttpServletRequest request);

    /**
     * 用商品分类获取当前商品的父级分类
     * @param categoryId
     * @return
     */
    public List<ScoreMallGoodsCategory> getScoreMallGoodsCategoryParentList(Long categoryId);

    /**
     * 新增积分商城商品分类
     * 
     * @param scoreMallGoodsCategory 积分商城商品分类
     * @return 结果
     */
    public int insertScoreMallGoodsCategory(ScoreMallGoodsCategory scoreMallGoodsCategory);

    /**
     * 修改积分商城商品分类
     * 
     * @param scoreMallGoodsCategory 积分商城商品分类
     * @return 结果
     */
    public int updateScoreMallGoodsCategory(ScoreMallGoodsCategory scoreMallGoodsCategory);

    /**
     * 批量删除积分商城商品分类
     * 
     * @param ids 需要删除的积分商城商品分类主键集合
     * @return 结果
     */
    public int deleteScoreMallGoodsCategoryByIds(Long[] ids);

    /**
     * 删除积分商城商品分类信息
     * 
     * @param id 积分商城商品分类主键
     * @return 结果
     */
    public int deleteScoreMallGoodsCategoryById(Long id);
}
